import App from './App'

// #ifndef VUE3
import Vue from 'vue'
import './uni.promisify.adaptor'
Vue.config.productionTip = false
import uView from '@/uview-ui'
Vue.use(uView);
// 引入 vconsole
import Vconsole from 'vconsole';
const vconsole = new Vconsole();
Vue.use(vconsole)
import VueCompositionAPI from '@vue/composition-api'
Vue.use(VueCompositionAPI)
App.mpType = 'app'
const app = new Vue({
	...App
})
app.$mount()
// #endif
import {
	$get,
	$post,
	$upload,
	$uploadOCR,
} from './utils/request.js'
Vue.prototype.$get = $get
Vue.prototype.$post = $post
Vue.prototype.$upload = $upload
Vue.prototype.$uploadOCR = $uploadOCR
import Util from './utils/utils.js'
Vue.prototype.$util = Util
import toNativePage from './utils/toNativePage.js'
Vue.prototype.$native= toNativePage
// #ifdef VUE3
import {
	createSSRApp
} from 'vue'
export function createApp() {
	const app = createSSRApp(App)
	return {
		app
	}
}
// #endif